/**
 * Created by ASUS on 2017/12/26.
 */

function addressChooseInit(obj){
    var defaultObj = {
        target:""
    };
    for(var i in obj){
        defaultObj[i] = obj[i]
    }
    if(defaultObj.target==""){alert("请传入需要滑动的容器"); return}

    //初始化滑动组件的方法
    function initSwiper(){
        return createSwiperEdit({target:defaultObj.target});
    }

    var swiper = initSwiper();

    window.myAddressSwiper = swiper;
}


function resetSlideSize(){
    setTimeout(function(){
        myAddressSwiper.map(function(ele,slideIndex){
            ele.update();
            ele.slideReset();
        });
    },false);
}
